package com.team7.happycommunity.propertymanagement.service.impl;

import com.team7.happycommunity.propertymanagement.dao.AreaInfoMapper;
import com.team7.happycommunity.propertymanagement.pojo.AreaInfo;
import com.team7.happycommunity.propertymanagement.service.AreaInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AreaInfoServiceImpl implements AreaInfoService {

    @Autowired
    AreaInfoMapper areaInfoMapper;

    @Override
    public AreaInfo selectByPrimaryKey(Integer id) {
        return areaInfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<AreaInfo> selectAll() {
        return areaInfoMapper.selectAll();
    }
}
